#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class ValueAxisXmlBuilder : IXmlBuilder {
        
        private ValueAxis mResultObject = null;

        public ValueAxis ResultObject {
            get {
                return mResultObject;
            }
        }

        public ValueAxisXmlBuilder(XmlNode valueAxisXmlNode) {
            Check.Require(valueAxisXmlNode != null, "Xml source node cannot be null");
            Check.Require(valueAxisXmlNode.Name.CompareTo(XmlTagNames.valueaxis.ToString()) == 0, "A ValueAxis Xml node must be supplied.");
            this.BuildObject(valueAxisXmlNode);
        }

        private void BuildObject(XmlNode valueAxisXmlNode) {
            mResultObject = new ValueAxis();
        }
    }
}
